package com.Jano.exception;

import org.springframework.http.HttpStatus;

/**
 * description: BusinessException <br>
 * date: 2022/7/10 9:40 PM <br>
 * author: zoumaoji <br>
 * version: 1.0 <br>
 */
public class BusinessException extends RuntimeException {
    private HttpStatus status;

    public BusinessException() {
    }

    public BusinessException(HttpStatus httpStatus, String message) {
        super(message);
        this.status = httpStatus;
    }

    public HttpStatus getStatus() {
        return status;
    }

    public void setStatus(HttpStatus status) {
        this.status = status;
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
